<?php

/**
 * ClassName:用户房间表
 * @auditor LeiJunXiang
 * @time 2024/12/05
 */

namespace app\model\onlineChat;

use app\factory\Factory;
use app\model\invite\InviteModel;
use app\model\ModelBase;

class UserRoom extends ModelBase
{
    const MODEL_USER_ROOM = "UserRoom";
    //房间号
    protected $roomNumber;
    //用户id
    protected $userId;
    //创建时间
    protected $createTime;
    //编号
    protected $count;
    //接收用户id
    protected $recipientUserId;


    /**
     * 获取对象实例
     * @return
     */
    static public function getObj()
    {
        $count = Factory::createUniqueNumber();
        $obj = Factory::getInstance()->getModelObj(InviteModel::MODEL_INVITE, $count);
        $obj->setCount($count);
        return $obj;
    }

    /**
     * @return mixed
     */
    public function getRoomNumber()
    {
        return $this->roomNumber;
    }

    /**
     * @param mixed $roomNumber
     */
    public function setRoomNumber($roomNumber): void
    {
        $this->roomNumber = $roomNumber;
    }

    /**
     * @return mixed
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * @param mixed $userId
     */
    public function setUserId($userId): void
    {
        $this->userId = $userId;
    }

    /**
     * @return mixed
     */
    public function getCreateTime()
    {
        return $this->createTime;
    }

    /**
     * @param mixed $createTime
     */
    public function setCreateTime($createTime): void
    {
        $this->createTime = $createTime;
    }

    /**
     * @return mixed
     */
    public function getCount()
    {
        return $this->count;
    }

    /**
     * @param mixed $count
     */
    public function setCount($count): void
    {
        $this->count = $count;
    }

    /**
     * @return mixed
     */
    public function getRecipientUserId()
    {
        return $this->recipientUserId;
    }

    /**
     * @param mixed $recipientUserId
     */
    public function setRecipientUserId($recipientUserId): void
    {
        $this->recipientUserId = $recipientUserId;
    }



}